from rest_framework import serializers
from .models import UserInfo


# 序列化
# InformationFormData 序列化器
# class InformationFormDataSerializer(serializers.ModelSerializer):
#     class Meta:
#         model = InformationFormData  # 序列化对象
#         # fields = '__all__'  # 序列化对象的所有属性
#         exclude = ['id', 'form_77', 'form_78',]

# UserInfoFormData 序列化器
class UserInfoFormDataSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserInfo  # 序列化对象
        fields = ('id', 'uname', 'description', 'urid', 'user_state',)
